﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Serialization;

namespace VisionRoc.Core
{
    //标定数据类
    [XmlInclude(typeof(PointPair))]
    [XmlRoot("PointPair")]
    public class PointPair
    {
        //旋转或者平移
        [XmlElement("PointType")]
        public string PointType { get; set; }

        [XmlElement("ImageX")]
        public double ImageX { get; set; }

        [XmlElement("ImageY")]
        public double ImageY { get; set; }

        [XmlElement("ImageAngle")]
        public double ImageAngle { get; set; }

        [XmlElement("MachineX")]
        public double MachineX { get; set; }

        [XmlElement("MachineY")]
        public double MachineY { get; set; }

        [XmlElement("MachineAngle")]
        public double MachineAngle { get; set; }

        public string PointType2 { get; set; }

        public double[] ImageX2;

        public double[] ImageY2;

        public double[] ImageAngle2;

        public double[] MachineX2;

        public double[] MachineY2;

        public double[] MachineAngle2;
        public PointPair()
        {
            this.PointType = "平移";
        }

        public PointPair(string PointType)
        {
            this.PointType = PointType;
        }


    }
}
